package com.yykj.backstage.all.model.repository;

import com.yykj.backstage.all.model.entity.Admin;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface AdminRepository extends JpaRepository<Admin,Integer> {
    Admin findFirstByUsernameAndPassword(String username,String password);
    Admin findFirstByUsername(String username);
}
